package com.hmall.common.client;

import com.hmall.user.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "userservice",path = "address")
public interface UserClient {

    @GetMapping("{addressId}")
    Address findAddressById(@PathVariable("addressId") Long id);
}
